export default defineAppConfig({
  easycom: {
    autoscan: true,
    custom: {
      '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
      '^uv-(.*)': '@climblee/uv-ui/components/uv-$1/uv-$1.vue',
      '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
        'z-paging/components/z-paging$1/z-paging$1.vue',
    },
  },

  // 主包
  pages: [
    'pages/tabbar/home/index', // 首页
    'pages/tabbar/place/index', // 下单
    'pages/tabbar/order/index', // 订单
    'pages/tabbar/oneself/index', // 我的
  ],

  // 分包
  // subPackages: [
  //   // 订单模块
  //   {
  //     root: 'pages/order',
  //     pages: [
  //       'userOrder/ordinaryDetail/index',
  //       'userOrder/deliveryDetail/index',
  //       'financialOrder/orderList/index',
  //       'financialOrder/orderDetail/index',
  //       'logisticsDetail/index',
  //       'userOrder/transferOrder/index',
  //     ]
  //   },
  //   //询价池
  //   {
  //     root: 'pages/inquryPool',
  //     pages: [
  //       'inquryList/index',
  //       'inquryDetail/index',
  //       'inquiryLog/index',
  //       'replyList/index'
  //     ]
  //   },
  //   //库存
  //   {
  //     root: 'pages/inventory',
  //     pages: [
  //       'inventory/index'
  //     ]
  //   },
  //   // 用户操作模块
  //   {
  //     root: 'pages/userManage',
  //     pages: [
  //       'login/index',
  //       'setting/index',
  //       'auth/index',
  //       'popularize/index',
  //       'address/adList/index',
  //       'address/adEdit/index',
  //     ]
  //   },
  //   // 收款管理
  //   {
  //     root: 'pages/receipt',
  //     pages: [
  //       'modeList/index',
  //       'addWechat/index',
  //       'addZfb/index',
  //       'addBankCard/index',
  //     ]
  //   },
  // ],

  tabBar: {
    "color": "#black",
    "selectedColor": "#1F86A7",
    "backgroundColor": "#ffffff",
    "borderStyle": "black",
    "list": [
      {
        "pagePath": "pages/tabbar/home/index",
        "text": "首页",
        "iconPath": "assets/images/tabbar/home_off.png",
        "selectedIconPath": "assets/images/tabbar/home_on.png"
      }, {
        "pagePath": "pages/tabbar/place/index",
        "text": "下单",
        "iconPath": "assets/images/tabbar/goto_order_off.png",
        "selectedIconPath": "assets/images/tabbar/goto_order_on.png"
      }, {
        "pagePath": "pages/tabbar/order/index",
        "text": "订单",
        "iconPath": "assets/images/tabbar/order_off.png",
        "selectedIconPath": "assets/images/tabbar/order_on.png"
      }, {
        "pagePath": "pages/tabbar/oneself/index",
        "text": "我的",
        "iconPath": "assets/images/tabbar/mine_off.png",
        "selectedIconPath": "assets/images/tabbar/mine_on.png"
      }
    ]
  },

  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#1F86A7',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'white'
  },
  requiredPrivateInfos: [
    "getLocation",
    "chooseLocation"
  ],
  permission: {
    'scope.userLocation': {
      desc: '你的位置信息将用于小程序位置接口的效果展示'
    }
  }
});
